package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class SysFile extends Model<SysFile> {

private static final long serialVersionUID = 1L;

    /**
     * 文件id，自增长
     */
                    @TableId(value = "sid", type = IdType.AUTO)
                private Integer sid;
    /**
     * 文件夹id
     */
        private Integer folderId;
    /**
     * 文件名称
     */
        private String fileName;
    /**
     * 物理文件地址
     */
        private String filePath;
    /**
     * 文件类型
     */
        private String fileType;
    /**
     * 文件大小`sys_menu`
     */
        private Integer fileSize;
    /**
     * 实体表的类型
     */
        private String modelType;
    /**
     * 实体表的id
     */
        private Integer modelId;
    /**
     * 备注
     */
        private String remark;
    /**
     * 建立人
     */
        private String createBy;
    /**
     * 建立时间
     */
        private Date cdate;
        private Date ctime;
        private Date utime;


    public Integer getSid() {
            return sid;
            }

        public void setSid(Integer sid) {
            this.sid = sid;
            }

    public Integer getFolderId() {
            return folderId;
            }

        public void setFolderId(Integer folderId) {
            this.folderId = folderId;
            }

    public String getFileName() {
            return fileName;
            }

        public void setFileName(String fileName) {
            this.fileName = fileName;
            }

    public String getFilePath() {
            return filePath;
            }

        public void setFilePath(String filePath) {
            this.filePath = filePath;
            }

    public String getFileType() {
            return fileType;
            }

        public void setFileType(String fileType) {
            this.fileType = fileType;
            }

    public Integer getFileSize() {
            return fileSize;
            }

        public void setFileSize(Integer fileSize) {
            this.fileSize = fileSize;
            }

    public String getModelType() {
            return modelType;
            }

        public void setModelType(String modelType) {
            this.modelType = modelType;
            }

    public Integer getModelId() {
            return modelId;
            }

        public void setModelId(Integer modelId) {
            this.modelId = modelId;
            }

    public String getRemark() {
            return remark;
            }

        public void setRemark(String remark) {
            this.remark = remark;
            }

    public String getCreateBy() {
            return createBy;
            }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
            }

    public Date getCdate() {
            return cdate;
            }

        public void setCdate(Date cdate) {
            this.cdate = cdate;
            }

    public Date getCtime() {
            return ctime;
            }

        public void setCtime(Date ctime) {
            this.ctime = ctime;
            }

    public Date getUtime() {
            return utime;
            }

        public void setUtime(Date utime) {
            this.utime = utime;
            }

@Override
protected Serializable pkVal() {
            return this.sid;
        }

@Override
public String toString() {
        return "SysFile{" +
                ", sid=" + sid +
                ", folderId=" + folderId +
                ", fileName=" + fileName +
                ", filePath=" + filePath +
                ", fileType=" + fileType +
                ", fileSize=" + fileSize +
                ", modelType=" + modelType +
                ", modelId=" + modelId +
                ", remark=" + remark +
                ", createBy=" + createBy +
                ", cdate=" + cdate +
                ", ctime=" + ctime +
                ", utime=" + utime +
        "}";
        }
        }
